Node.js With Passport Authentication | Full Project

439,252 views439K views
29 Dec 2018
1.26M subscribers
Subscribe
In this video we will build a complete authentication app with login, register and access control using Node.js, Express, Passport, Mongoose and more. Sponsor: DevMountain Bootcamp https://goo.gl/6q0dEa Code: https://github.com/bradtraversy/node_... 💖 Become a Patron: Show support & get perks! http://www.patreon.com/traversymedia Website & Udemy Courses http://www.traversymedia.com Follow Traversy Media: https://www.facebook.com/traversymedia https://www.twitter.com/traversymedia https://www.instagram.com/traversymedia Patron Resources: Carlos Mafla Channel - https://www.youtube.com/channel/UCnFR... ParkFlyer Explorer SEO - https://parkflyerexplorer.com Need Domains & Hosting? Inmotion Hosting - https://inmotion-hosting.evyy.net/c/3... Namecheap - https://namecheap.pxf.io/c/1299552/38...
Show less
During the dependency install my facecam is in the way. The two it is covering is “passport-local” and “express-ejs-layouts”. Sorry about that
262
Amazing stuff! Thanks Brad For those who will refer later: - DEVMOUNTAIN (00:00:06) - Introduction (00:00:22) - Mongo DB, Create project database (00:03:02) - Open VS Code (00:05:16) - npm dependancies (00:05:53) - Coding: Init, setup views (00:08:02) - Coding: Configure DB into app (00:21:27) - Coding: Models, registration logic (00:24:37) - Coding: Passport Auth, Login logic (01:00:28)
367
Thank you so much, you're such a huge help!
I got a software Developer job because of you . and i have learnt so many things from your videos. Thanq you Brad
408
for people getting error when including partials/messages do this: <%- include('partials/messages'); %>
52
Sometimes I forget to say "thank you, Brad." So, let me say it here and now, thank you Brad for all you do.
113
Try this if inserting the partial doesn't work: <%- include('./partials/messages'); %>
Thanks Brad for such a nice video. In this, I was getting a connection error. I tried too much to get over it and founded the solution too. So I am posting here the issue and the solution. error: (node:578) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. Solution: // Connect to Mongo mongoose.connect(db, { useNewUrlParser: true, useUnifiedTopology: true }) .then(() => console.log('MongoDB conneted...')) .catch(err => console.log(err)); Conclusion: I have added `useUnifiedTopology: true ` to override the problem. Just giving the solution if any needed. Thanks
12
Can you do multiple user account tutorial using passport?
79
Can you make a video about role based authentication?
44
Partials is now this: <%- include('./partials/messages') %>
35
I almost understood every single line. Thanks for such a quality content
12
Hi Brad, could we see more videos on "secure coding" in all the major programming languages using owasp top 10 , CERT, and DEVOPS SEC. Also include anti malware programming....in the new year ....thanks for all your great work and have a great 2019 to you and your family 👍
28
Need to use other EJS Syntax : <%- include('messages'); -%> ! Ure welcome!
16
Commens in ejs for those who like to comment their tutorials as I do - you basically just add a "#" within the bracket of code, like so: <%# include ..... %>
I love the series especially when it's stuff like MERN or other full stacks
Can you pls make a similar tutorial but using react, and redux? Thanks man; you're doing Gods work out here.
10
I got this error: MongoNetworkError: connection 5 Mongo <TransientTransactionError>
Thanks brad, please can you do login, registration with MERN?? pleeese.... ALL THOSE WHO SUPPORT, GIVE A THUMBS UP
Very big thanks to bros Traversy fr this great tutorial, I really do appreciate...Bt I dnt knw if anyone is having dsame challenge wid me, each time I try to sign up it shows waiting fr local host.. And it keeps loading without stopping I can't register nor login, pls does anyone knows the fix to this?